/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * InternalFrameAddProduto.java
 *
 * Created on 26/01/2012, 13:54:12
 */
package gui.frames.internos;

import controle.gui.frames.internos.ControleBoletimPesquisa;
import controle.gui.frames.internos.ControleVisitaPesquisa;
import controle.gui.superclasses.InternalFrame;
import gui.componentes.JTextFieldCodigo;
import modelo.Boletimpesquisa;

/**
 *
 * @author Administrador
 */
public class IFVisitaPesquisa extends InternalFrame {

    private ControleVisitaPesquisa controle = null;

    // Creates new form InternalFrameAddProduto
    public IFVisitaPesquisa(ControleBoletimPesquisa controleBoletim, Boletimpesquisa boletimPesquisa, boolean boletimAtivo) {
        controle = new ControleVisitaPesquisa(this, controleBoletim, boletimPesquisa, boletimAtivo);
        initComponents();
        this.inicializa();
    }
    public IFVisitaPesquisa(){
        initComponents();
    }

    @Override
    public void inicializa() {
        controle.inicializa();

    }

    public void exibirVisita() {
        controle.preencheGUI();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        groupPendencia = new javax.swing.ButtonGroup();
        panelInformações = new javax.swing.JPanel();
        labelIdVisita = new javax.swing.JLabel();
        textIdVisita = new javax.swing.JTextField();
        labelBoletim = new javax.swing.JLabel();
        textIdBoletim = new javax.swing.JTextField();
        labelQuadra = new javax.swing.JLabel();
        labelLogradouro = new javax.swing.JLabel();
        labelImovel = new javax.swing.JLabel();
        labelHora = new javax.swing.JLabel();
        comboQuadra = new javax.swing.JComboBox();
        textCodigoQuadra = new javax.swing.JTextField();
        comboLogradouro = new javax.swing.JComboBox();
        textIdLogradouro = new javax.swing.JTextField();
        comboImovel = new javax.swing.JComboBox();
        textIdImovel = new javax.swing.JTextField();
        textHora = new javax.swing.JTextField();
        panelColetaAmostras = new javax.swing.JPanel();
        labelTubitos = new javax.swing.JLabel();
        labelAmostra = new javax.swing.JLabel();
        textAmostra = new JTextFieldCodigo(4, false);
        textTubitos = new JTextFieldCodigo(2, true);
        panelLarvasExaminadas = new javax.swing.JPanel();
        labelAeg = new javax.swing.JLabel();
        labelAlb = new javax.swing.JLabel();
        textAlbTotal = new JTextFieldCodigo(3, true);
        textAegTotal = new JTextFieldCodigo(3, true);
        labelOut = new javax.swing.JLabel();
        textOutTotal = new JTextFieldCodigo(3, true);
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        textAegA = new JTextFieldCodigo(2, true);
        textAlbA = new JTextFieldCodigo(2, true);
        jLabel3 = new javax.swing.JLabel();
        textAegB = new JTextFieldCodigo(2, true);
        textAlbB = new JTextFieldCodigo(2, true);
        jLabel4 = new javax.swing.JLabel();
        textAegC = new JTextFieldCodigo(2, true);
        textAlbC = new JTextFieldCodigo(2, true);
        jLabel5 = new javax.swing.JLabel();
        textAegD = new JTextFieldCodigo(2, true);
        textAlbD = new JTextFieldCodigo(2, true);
        jLabel6 = new javax.swing.JLabel();
        textAegE = new JTextFieldCodigo(2, true);
        textAlbE = new JTextFieldCodigo(2, true);
        jLabel7 = new javax.swing.JLabel();
        textAegF = new JTextFieldCodigo(2, true);
        textAlbF = new JTextFieldCodigo(2, true);
        jLabel8 = new javax.swing.JLabel();
        textAegG = new JTextFieldCodigo(2, true);
        textAlbG = new JTextFieldCodigo(2, true);
        jLabel9 = new javax.swing.JLabel();
        textAegH = new JTextFieldCodigo(2, true);
        textAlbH = new JTextFieldCodigo(2, true);
        jLabel10 = new javax.swing.JLabel();
        textAegI = new JTextFieldCodigo(2, true);
        textAlbI = new JTextFieldCodigo(2, true);
        jLabel20 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        comboTipoUnidade = new javax.swing.JComboBox();
        labelTipoUnidade = new javax.swing.JLabel();
        labelDepInspecionados = new javax.swing.JLabel();
        textDepInsp = new JTextFieldCodigo(2, true);
        checkUltimaVisitaBoletim = new javax.swing.JCheckBox();
        checkQuartConcluido = new javax.swing.JCheckBox();
        panelOpções = new javax.swing.JPanel();
        buttonCancelar = new javax.swing.JButton();
        buttonOk = new javax.swing.JButton();
        buttonLimpar = new javax.swing.JButton();

        setClosable(true);
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Visita de Pesquisa Larvária");

        panelInformações.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Informações da Visita", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

        labelIdVisita.setText("Id da Visita:");

        textIdVisita.setEnabled(false);

        labelBoletim.setText("Id Boletim:");

        textIdBoletim.setEnabled(false);

        labelQuadra.setText("Quadra:");

        labelLogradouro.setText("Logradouro:");

        labelImovel.setText("Imóvel:");

        labelHora.setText("Hora:");

        comboQuadra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboQuadraActionPerformed(evt);
            }
        });

        textCodigoQuadra.setEnabled(false);

        comboLogradouro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione..." }));
        comboLogradouro.setEnabled(false);
        comboLogradouro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboLogradouroActionPerformed(evt);
            }
        });

        textIdLogradouro.setEnabled(false);

        comboImovel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione..." }));
        comboImovel.setEnabled(false);

        textIdImovel.setEnabled(false);

        textHora.setEnabled(false);
        textHora.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textHoraActionPerformed(evt);
            }
        });

        panelColetaAmostras.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Coleta de Amostras:", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

        labelTubitos.setText("Nº de Tubitos:>");

        labelAmostra.setText("Nº da Amostra:");

        textAmostra.setEnabled(false);

        textTubitos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textTubitosActionPerformed(evt);
            }
        });
        textTubitos.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                textTubitosFocusLost(evt);
            }
        });

        javax.swing.GroupLayout panelColetaAmostrasLayout = new javax.swing.GroupLayout(panelColetaAmostras);
        panelColetaAmostras.setLayout(panelColetaAmostrasLayout);
        panelColetaAmostrasLayout.setHorizontalGroup(
            panelColetaAmostrasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelColetaAmostrasLayout.createSequentialGroup()
                .addGroup(panelColetaAmostrasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelTubitos)
                    .addComponent(labelAmostra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelColetaAmostrasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(textAmostra, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)
                    .addComponent(textTubitos)))
        );
        panelColetaAmostrasLayout.setVerticalGroup(
            panelColetaAmostrasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelColetaAmostrasLayout.createSequentialGroup()
                .addGroup(panelColetaAmostrasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTubitos)
                    .addComponent(textTubitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelColetaAmostrasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(textAmostra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelAmostra)))
        );

        panelLarvasExaminadas.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Nº de Larvas Examinadas:", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

        labelAeg.setText("Aeg:");

        labelAlb.setText("Alb:");

        textAlbTotal.setEnabled(false);

        textAegTotal.setEnabled(false);
        textAegTotal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textAegTotalActionPerformed(evt);
            }
        });

        labelOut.setText("Out:");

        textOutTotal.setEnabled(false);

        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Total");

        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("A");

        textAegA.setEnabled(false);

        textAlbA.setEnabled(false);
        textAlbA.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textAlbAActionPerformed(evt);
            }
        });
        textAlbA.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                textAlbAFocusLost(evt);
            }
        });

        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("B");

        textAegB.setEnabled(false);

        textAlbB.setEnabled(false);

        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel4.setText("C");

        textAegC.setEnabled(false);

        textAlbC.setEnabled(false);

        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel5.setText("D");

        textAegD.setEnabled(false);

        textAlbD.setEnabled(false);

        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel6.setText("E");

        textAegE.setEnabled(false);

        textAlbE.setEnabled(false);

        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel7.setText("F");

        textAegF.setEnabled(false);

        textAlbF.setEnabled(false);

        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel8.setText("G");

        textAegG.setEnabled(false);

        textAlbG.setEnabled(false);

        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel9.setText("H");

        textAegH.setEnabled(false);

        textAlbH.setEnabled(false);

        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel10.setText("I");

        textAegI.setEnabled(false);

        textAlbI.setEnabled(false);

        jLabel20.setText("Obs: Todos estes campos devem ser preenchidos para que a visita não fique pendente.");

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Legenda:", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

        jLabel17.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel17.setText("G = Caixa d'água");

        jLabel18.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel18.setText("H = Recipiente Natural");

        jLabel19.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel19.setText("I = Outros");

        jLabel11.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel11.setText("A = Pneu");

        jLabel12.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel12.setText("B = Tambor/Tanque/Barril/Tina/Tonel/Dep. de Barro");

        jLabel13.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel13.setText("C = Vaso de Planta");

        jLabel14.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel14.setText("D = Mal Construção/Peça de Carro");

        jLabel15.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel15.setText("E = Garrafas/Latas/Plásticos");

        jLabel16.setFont(new java.awt.Font("DejaVu Sans", 0, 11)); // NOI18N
        jLabel16.setText("F = Poço/Cisterna/Cacimba");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel14)
                                .addGap(27, 27, 27)
                                .addComponent(jLabel15))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel11)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel12)))
                        .addGap(29, 29, 29))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel18)
                        .addGap(57, 57, 57)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel19)
                    .addComponent(jLabel13)
                    .addComponent(jLabel16))
                .addGap(116, 116, 116))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jLabel12)
                    .addComponent(jLabel13))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(jLabel16)
                    .addComponent(jLabel14))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(jLabel18)
                    .addComponent(jLabel19)))
        );

        javax.swing.GroupLayout panelLarvasExaminadasLayout = new javax.swing.GroupLayout(panelLarvasExaminadas);
        panelLarvasExaminadas.setLayout(panelLarvasExaminadasLayout);
        panelLarvasExaminadasLayout.setHorizontalGroup(
            panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelLarvasExaminadasLayout.createSequentialGroup()
                .addComponent(labelOut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(49, 49, 49))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelLarvasExaminadasLayout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 597, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(panelLarvasExaminadasLayout.createSequentialGroup()
                .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel20)
                    .addGroup(panelLarvasExaminadasLayout.createSequentialGroup()
                        .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(labelAeg, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(labelAlb, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(panelLarvasExaminadasLayout.createSequentialGroup()
                                .addComponent(textAegA, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegB, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegC, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegD, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegE, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegF, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegG, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegH, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAegI, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(textAegTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(panelLarvasExaminadasLayout.createSequentialGroup()
                                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(panelLarvasExaminadasLayout.createSequentialGroup()
                                .addComponent(textAlbA, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbB, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbC, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbD, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbE, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbF, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbG, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbH, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textAlbI, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(textOutTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(textAlbTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addGap(0, 0, Short.MAX_VALUE))
        );

        panelLarvasExaminadasLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {textAegA, textAegB, textAegC, textAegD, textAegE, textAegF, textAegG, textAegH, textAegI, textAlbA, textAlbB, textAlbC, textAlbD, textAlbE, textAlbF, textAlbG, textAlbH, textAlbI});

        panelLarvasExaminadasLayout.setVerticalGroup(
            panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelLarvasExaminadasLayout.createSequentialGroup()
                .addGap(0, 0, 0)
                .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(panelLarvasExaminadasLayout.createSequentialGroup()
                        .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(jLabel2)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5)
                            .addComponent(jLabel6)
                            .addComponent(jLabel7)
                            .addComponent(jLabel8)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10)
                            .addComponent(jLabel1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textAegB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelAeg)
                            .addComponent(textAegA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textAegTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(26, 26, 26))
                    .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(textAlbA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(labelAlb)
                        .addComponent(textAlbB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(textAlbTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(panelLarvasExaminadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelOut)
                    .addComponent(textOutTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(3, 3, 3)
                .addComponent(jLabel20)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        panelLarvasExaminadasLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {textAegA, textAegB, textAegC, textAegD, textAegE, textAegF, textAegG, textAegH, textAegI, textAlbA, textAlbB, textAlbC, textAlbD, textAlbE, textAlbF, textAlbG, textAlbH, textAlbI});

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Informações", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

        comboTipoUnidade.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione...", "Residencial", "Comercial", "Terreno Baldio", "Ponto Estratégico", "Outros" }));

        labelTipoUnidade.setText("Tipo Unidade:");

        labelDepInspecionados.setText("D. Ispecionados:");

        textDepInsp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textDepInspActionPerformed(evt);
            }
        });

        checkUltimaVisitaBoletim.setText("Última Visita Boletim");
        checkUltimaVisitaBoletim.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkUltimaVisitaBoletimActionPerformed(evt);
            }
        });

        checkQuartConcluido.setText("Quarteirão Concluído");
        checkQuartConcluido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkQuartConcluidoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(labelTipoUnidade)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(comboTipoUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(labelDepInspecionados)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(textDepInsp, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(checkUltimaVisitaBoletim)
                    .addComponent(checkQuartConcluido)))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTipoUnidade)
                    .addComponent(comboTipoUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkQuartConcluido))
                .addGap(4, 4, 4)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(textDepInsp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelDepInspecionados)
                    .addComponent(checkUltimaVisitaBoletim))
                .addGap(0, 0, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panelInformaçõesLayout = new javax.swing.GroupLayout(panelInformações);
        panelInformações.setLayout(panelInformaçõesLayout);
        panelInformaçõesLayout.setHorizontalGroup(
            panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelInformaçõesLayout.createSequentialGroup()
                .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(panelInformaçõesLayout.createSequentialGroup()
                        .addComponent(panelColetaAmostras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelInformaçõesLayout.createSequentialGroup()
                        .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labelIdVisita)
                            .addComponent(labelQuadra)
                            .addComponent(labelLogradouro)
                            .addComponent(labelImovel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelInformaçõesLayout.createSequentialGroup()
                                .addComponent(textIdVisita, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(labelBoletim)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textIdBoletim, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(labelHora)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textHora, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(panelInformaçõesLayout.createSequentialGroup()
                                    .addComponent(textCodigoQuadra, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(comboQuadra, 0, 387, Short.MAX_VALUE))
                                .addGroup(panelInformaçõesLayout.createSequentialGroup()
                                    .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(textIdImovel, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)
                                        .addComponent(textIdLogradouro))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(comboLogradouro, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addGroup(panelInformaçõesLayout.createSequentialGroup()
                                            .addComponent(comboImovel, javax.swing.GroupLayout.PREFERRED_SIZE, 387, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE)))))))
                    .addComponent(panelLarvasExaminadas, javax.swing.GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE))
                .addGap(0, 0, 0))
        );
        panelInformaçõesLayout.setVerticalGroup(
            panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelInformaçõesLayout.createSequentialGroup()
                .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelIdVisita)
                    .addComponent(textIdVisita, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelBoletim)
                    .addComponent(textIdBoletim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelHora)
                    .addComponent(textHora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelQuadra)
                    .addComponent(comboQuadra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(textCodigoQuadra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(6, 6, 6)
                .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelLogradouro)
                    .addComponent(comboLogradouro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(textIdLogradouro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(6, 6, 6)
                .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelImovel)
                    .addComponent(comboImovel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(textIdImovel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelInformaçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(panelColetaAmostras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelLarvasExaminadas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        panelOpções.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Opções", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

        buttonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Cancelar.png"))); // NOI18N
        buttonCancelar.setText("Cancelar");
        buttonCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonCancelarActionPerformed(evt);
            }
        });

        buttonOk.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Confirma.png"))); // NOI18N
        buttonOk.setText("Ok");
        buttonOk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonOkActionPerformed(evt);
            }
        });

        buttonLimpar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Novo.png"))); // NOI18N
        buttonLimpar.setText("Nova/Limpar");
        buttonLimpar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonLimparActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelOpçõesLayout = new javax.swing.GroupLayout(panelOpções);
        panelOpções.setLayout(panelOpçõesLayout);
        panelOpçõesLayout.setHorizontalGroup(
            panelOpçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelOpçõesLayout.createSequentialGroup()
                .addComponent(buttonOk)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonLimpar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonCancelar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panelOpçõesLayout.setVerticalGroup(
            panelOpçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelOpçõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(buttonOk)
                .addComponent(buttonCancelar)
                .addComponent(buttonLimpar))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelInformações, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(panelOpções, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(panelInformações, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelOpções, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    @Override
    public void buttonCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCancelarActionPerformed
        this.dispose();
    }//GEN-LAST:event_buttonCancelarActionPerformed

    public void buttonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonOkActionPerformed
        controle.inserirAlterarLinha();
    }//GEN-LAST:event_buttonOkActionPerformed

    @Override
    public void buttonLimparActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonLimparActionPerformed
        controle.limparGUI();
    }//GEN-LAST:event_buttonLimparActionPerformed

    public void textHoraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textHoraActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_textHoraActionPerformed

    public void textDepInspActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textDepInspActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_textDepInspActionPerformed

    public void comboLogradouroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboLogradouroActionPerformed
        controle.comboBoxLogradouroCarregaComboBoxImovel();
    }//GEN-LAST:event_comboLogradouroActionPerformed

    public void comboQuadraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboQuadraActionPerformed
        controle.eventoComboBoxQuadra(comboQuadra, comboLogradouro, comboImovel);
    }//GEN-LAST:event_comboQuadraActionPerformed

    public void textAmostraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textAmostraActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_textAmostraActionPerformed

    public void textTubitosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textTubitosActionPerformed
        controle.carregaNumeroAmostra();
    }//GEN-LAST:event_textTubitosActionPerformed

    public void textTubitosFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textTubitosFocusLost
        controle.eventoFocusLostVerificaTextTubitos();
    }//GEN-LAST:event_textTubitosFocusLost

    private void textAegTotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textAegTotalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_textAegTotalActionPerformed

    private void textAlbAFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textAlbAFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_textAlbAFocusLost

    private void textAlbAActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textAlbAActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_textAlbAActionPerformed

    private void checkUltimaVisitaBoletimActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkUltimaVisitaBoletimActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkUltimaVisitaBoletimActionPerformed

    private void checkQuartConcluidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkQuartConcluidoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkQuartConcluidoActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton buttonCancelar;
    public javax.swing.JButton buttonLimpar;
    public javax.swing.JButton buttonOk;
    public javax.swing.JCheckBox checkQuartConcluido;
    public javax.swing.JCheckBox checkUltimaVisitaBoletim;
    public javax.swing.JComboBox comboImovel;
    public javax.swing.JComboBox comboLogradouro;
    public javax.swing.JComboBox comboQuadra;
    public javax.swing.JComboBox comboTipoUnidade;
    public javax.swing.ButtonGroup groupPendencia;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel labelAeg;
    private javax.swing.JLabel labelAlb;
    private javax.swing.JLabel labelAmostra;
    private javax.swing.JLabel labelBoletim;
    private javax.swing.JLabel labelDepInspecionados;
    private javax.swing.JLabel labelHora;
    private javax.swing.JLabel labelIdVisita;
    private javax.swing.JLabel labelImovel;
    private javax.swing.JLabel labelLogradouro;
    private javax.swing.JLabel labelOut;
    private javax.swing.JLabel labelQuadra;
    private javax.swing.JLabel labelTipoUnidade;
    private javax.swing.JLabel labelTubitos;
    private javax.swing.JPanel panelColetaAmostras;
    private javax.swing.JPanel panelInformações;
    private javax.swing.JPanel panelLarvasExaminadas;
    private javax.swing.JPanel panelOpções;
    public javax.swing.JTextField textAegA;
    public javax.swing.JTextField textAegB;
    public javax.swing.JTextField textAegC;
    public javax.swing.JTextField textAegD;
    public javax.swing.JTextField textAegE;
    public javax.swing.JTextField textAegF;
    public javax.swing.JTextField textAegG;
    public javax.swing.JTextField textAegH;
    public javax.swing.JTextField textAegI;
    public javax.swing.JTextField textAegTotal;
    public javax.swing.JTextField textAlbA;
    public javax.swing.JTextField textAlbB;
    public javax.swing.JTextField textAlbC;
    public javax.swing.JTextField textAlbD;
    public javax.swing.JTextField textAlbE;
    public javax.swing.JTextField textAlbF;
    public javax.swing.JTextField textAlbG;
    public javax.swing.JTextField textAlbH;
    public javax.swing.JTextField textAlbI;
    public javax.swing.JTextField textAlbTotal;
    public javax.swing.JTextField textAmostra;
    public javax.swing.JTextField textCodigoQuadra;
    public javax.swing.JTextField textDepInsp;
    public javax.swing.JTextField textHora;
    public javax.swing.JTextField textIdBoletim;
    public javax.swing.JTextField textIdImovel;
    public javax.swing.JTextField textIdLogradouro;
    public javax.swing.JTextField textIdVisita;
    public javax.swing.JTextField textOutTotal;
    public javax.swing.JTextField textTubitos;
    // End of variables declaration//GEN-END:variables

}
